import {ApiProperty} from "@nestjs/swagger";
import {IsNotEmpty} from "class-validator";
import {CreateIssueDto} from "../../issue/dto/issue-dto";

export class tempSaveDto{
    @ApiProperty({required: true , description: '问卷ID'})
    @IsNotEmpty({ message:"问卷ID不能为空" })
    surId: number;

    @ApiProperty({required: true , description: '保存内容'})
    @IsNotEmpty({ message:"题目内容不能为空" })
    data: CreateIssueDto[];
}

